package com.baizhi;

import com.baizhi.servlet.UserController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration("classpath:applicationContext.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class UserControllerTst {
    @Autowired
    private UserController userController;

    @Test
    public void test_registUser(){

        userController.registUser();
    }

    @Test
    public void test_delUser(){
        userController.delUser();
    }

}
